package com.cuanbo.dualscreenteachzhu.activity;

import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.VideoView;

import com.cuanbo.dualscreenteachzhu.R;
import com.cuanbo.dualscreenteachzhu.base.LHBaseActivity;

public class PlayerActivity extends LHBaseActivity {
    private View rootView;
    private VideoView videoView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        rootView= LayoutInflater.from(this).inflate(R.layout.activity_player,null);
        setContentView(rootView);
        init();
    }

    public void init(){
        initView();
        Uri uri=Uri.parse(getArguments("path"));
        videoView.setVideoURI(uri);
        videoView.start();
    }

    public void initView() {
        videoView = rootView.findViewById(R.id.videoView);

    }
    
    @Override
    public void requestData() {
        
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
    }

}